FROM java:8-jdk

MAINTAINER credithc

ADD *.jar /jar/signature-core.jar
ADD  BOOT-INF/classes/SimSun.ttc /usr/share/fonts/ttc/SimSun.ttc
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT ["java","-Xms4096m","-Xmx4096m", "-XX:+PrintGCDetails", "-XX:+PrintGCDateStamps", "-Xloggc:/opt/logs/dump/gc-%t.log", "-XX:+PrintCommandLineFlags","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=/opt/logs/dump/coredump.hprof","-jar","/jar/signature-core.jar"]
